import {primaryType, demoMenus} from "@/components/OptionsMetaData";

const drawerViewMetas = [
    {field: 'tableName', title: '表名', type: 'text', rules: [{required: true, message: '表名必填'}], placeholder: '数据库表名（t_user）'},
    {field: 'comment', title: '表说明', type: 'text', change: (val, meta, model)=>{
            model.addTitle = "新增"+val;
            model.editTitle = "修改"+val;
        }, placeholder: '数据库表说明(会员表)'},
    {field: 'menuId', title: '父菜单', type: 'treeSelect', data: demoMenus},
    {field: 'keyField', title: '主键字段', type: 'text', rules: [{required: true, message: '主键字段必填'}]},
    {field: 'keyType', title: '主键自增', type: 'radio', data: primaryType, radioStyle: 'button'},
]
